package com.freedom.common.core.constant;

public interface SecurityConstant {

    String ACCOUNT = "account";
    String PASSWORD = "password";
    String UUID = "uuid";
    String CAPTCHA_CODE = "captcha_code";

    String CLIENT_ID_KEY = "client_id";


    String USER_TYPE_KEY = "userType";

    String USER_ID_KEY = "userId";
    String MEMBER_ID_KEY = "memberId";
    String ACCOUNT_KEY = "account";
    String NICK_NAME_KEY = "nickName";
    String DEPT_ID_KEY = "deptId";
    String DATA_SCOPE = "dataScope";

    String ROOT = "root";



    /**
     * 认证身份标识
     */
    String AUTHENTICATION_IDENTITY_KEY = "authenticationIdentity";
    /**
     * JWT存储权限属性
     */
    String JWT_AUTHORITIES_KEY = "authorities";

    String REFRESH_TOKEN_KEY = "refresh_token";

    /**
     * 认证请求头key
     */
    String AUTHORIZATION_KEY = "Authorization";

    /**
     * Basic认证前缀
     */
    String BASIC_PREFIX = "Basic ";
    /**
     * JWT存储权限前缀
     */
    String AUTHORITY_PREFIX = "ROLE_";

    String GRANT_TYPE_KEY = "grant_type";


    /**
     * 系统管理 web 客户端ID
     */
    String ADMIN_CLIENT_ID = "freedom-admin-web";

    /**
     * 供应商系统管理 web 客户端ID
     */
    String SUPPLIER_CLIENT_ID = "freedom-supplier-web";

    /**
     * 移动端（H5/Android/IOS）客户端ID
     */
    String APP_CLIENT_ID = "freedom-app";

    /**
     * 小程序端（微信小程序、....） 客户端ID
     */
    String WEBAPP_CLIENT_ID = "freedom-weapp";
}
